/**
 * @author Leong Wai Lun A0032831R
 */

package jobresponse;

import properties.PropertiesDAO;
/**
 * 
 * read data from jobresponse file ,
 * write data to jobresponse file
 *
 */
public class JobResponseDAO extends PropertiesDAO{

	/**
	 * reads all the data stored in the jobresponse file
	 * @return boolean
	 */
	public boolean readDTOs() {
		return super.readDTOs(DTOTYPES.JOBRESPONSE);

	}
	/**
	 * writes all the data into the jobresponse file.
	 * @return boolean
	 */
	public boolean writeDTOs() {
		return super.writeDTOs(DTOTYPES.JOBRESPONSE);
	}
	
	/**
	 * returns the specified data according the input id
	 * @param id Job response id
	 * @return Job response record
	 */
	public JobResponseDTO getDTO(String id) {
		return (JobResponseDTO) super.getDTO(id);
	}
}
